<?php use_helper('Text') ?>
	 <div align="center">
        <?php foreach($adverts as $advert):?>
            <ul class="mem_alert">
                <li><strong>Vous avez été averti le <?php echo date("d-m-Y h:i",strtotime($advert["date_ajout"],time())) ?> par <?php echo $advert["SfGuardUserProfile"]["User"]["username"] ?></strong></li>
                <li>Motif de l'avertisement:</li>
                <li><?php echo $advert["raison"] ?></li>
                <li>Conséquences : <?php echo $advert["SfGuardGroup"]["description"] ?>  <?php if($advert["date_fin"] == NULL)echo " à vie!"; else echo "jusqu'au ".date("d-m-Y h:i",strtotime($advert["date_fin"],time())) ?></li> 
            </ul>
        <?php endforeach;?>
      </div>
 

    <ul class="no_margin">
    
    <li>
    	<div class="title_section">
Rappel de vos informations:
        </div>
        <div class="section">
        	<ul>
            	<li class="detail_client">
                	<span class="block" style="margin:3px;font-size:15px;text-decoration:underline">Nom d'utilisateur:</span>
					<span class="block" style="padding-left:10px;"><?php echo $sf_user->getGuardUser()->getUserName()?></span>
                </li>
                <li class="detail_client">
                	<span class="block" style="margin:3px;font-size:15px;text-decoration:underline">Email:</span>
					<span class="block" style="padding-left:10px;"><?php echo $sf_user->getGuardUser()->getEmailAddress()?></span>
                </li>
                <li class="detail_client">
                	<span class="block" style="margin:3px;font-size:15px;text-decoration:underline">Site web:</span>
					<span class="block" style="padding-left:10px;"><?php echo $sf_user->getProfile()->getWebsite()?></span>
                </li>
                <li class="detail_client">
                	<span class="block" style="margin:3px;font-size:15px;text-decoration:underline">Date d'incription:</span>
					<span class="block" style="padding-left:10px;"><?php echo $sf_user->getGuardUser()->getCreatedAt()?></span>
                </li>
            </ul>
        </div>
    </li>
    <li>
    	<div class="title_section">
            Rappel de votre configuration:
        </div>
        <div class="section">
    	 <ul>
			<?php if (count($platformClient) > 0):
         	foreach($platformClient as $platform):?>
                <li class="elem_on_section">
                    <?php echo image_tag("Platform/".$platform["Platform"]["picture"], array("width" => 32,"height" => 32, "alt" => "config_client")) ?>
                     <?php if($platform["Platform"]["id"] == "-1"):?>
					 Aucun <?php echo $platform["Platformgroup"]["title_profil_membre"]?>
                    <?php else:?>
                    <?php echo $platform["Platform"]["real_name"]?> comme <?php echo $platform["Platformgroup"]["title_profil_membre"]?>
                    <?php endif?>
                </li>
            <?php endforeach;?>
           	<?php else:?>
            	<div style="width:90%; border:1px solid #900; background-color:#FEE9EA; margin: 5px; padding:5px; font-weight:bold">
                	<?php echo image_tag("Icons/compte/121.png", array("width" => 15,"height" => 15, "alt" => "info")) ?> Vous n'avez pas encore renseigné votre configuration. Faite le dés à présent sur <a href="<?php echo url_for("compte/edit?id=".$sf_user->getGuardUser()->getId()) ?>">votre profil</a>
                </div>
            <?php endif?>
        </ul>
       </div>
        
    </li>
    
    </ul>


